adjusted.x += border.left + padding.left;
adjusted.y += border.top + padding.top;
- /* Since gtk_widget_measure does it for us, we can be sure here that
- * the given alloaction is large enough for the css margin/bordder/padding */
- adjusted.width -= border.left + padding.left +
- border.right + padding.right;
- adjusted.height -= border.top + padding.top +
- border.bottom + padding.bottom;
if (baseline >= 0)
baseline -= margin.top + border.top + padding.top;
if (adjusted.x || adjusted.y)
if (!alloc_needed && !size_changed && !baseline_changed)
goto skip_allocate;
+ /* Since gtk_widget_measure does it for us, we can be sure here that
+ * the given alloaction is large enough for the css margin/bordder/padding */
+ adjusted.width -= border.left + padding.left +
+ border.right + padding.right;
+ adjusted.height -= border.top + padding.top +
+ border.bottom + padding.bottom;
+
priv->width = adjusted.width;
priv->height = adjusted.height;
priv->baseline = baseline;